Warning (2) : Missing argument 1 for NewsroomController::szczegoly() [ROOTappROOTControllerROOTNewsroomController.php , line 28 ]Code Context }
function szczegoly( $slug ) {
NewsroomController::szczegoly() - ROOTappROOTControllerROOTNewsroomController.php, line 28
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOTappROOTwebrootROOTindex.php, line 92 Notice (8) : Undefined variable: slug [ROOTappROOTControllerROOTNewsroomController.php , line 29 ]Code Context
function szczegoly( $slug ) {
$news = $this->Newsroom->find('first', array('conditions' => array('Newsroom.slug' => $slug, 'Newsroom.status' => 1)));
NewsroomController::szczegoly() - ROOTappROOTControllerROOTNewsroomController.php, line 29
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOTappROOTwebrootROOTindex.php, line 92
Errors - Wózki widłowe, regały paletowe, paleciaki - Wyposażenie magazynów - Maglo
Database Error
Error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `Newsroom`.`status` = 1 ORDER BY `Newsroom`.`id` ASC LIMIT 1' at line 1
SQL Query:
SELECT `Newsroom`.`id`, `Newsroom`.`title`, `Newsroom`.`slug`, `Newsroom`.`body`, `Newsroom`.`created`, `Newsroom`.`status` FROM `10095882_0000079`.`newsrooms` AS `Newsroom` WHERE `Newsroom`.`id` > AND `Newsroom`.`status` = 1 ORDER BY `Newsroom`.`id` ASC LIMIT 1
Notice:
If you want to customize this error message, create app/View/Errors/pdo_error.ctp
Stack Trace
CORE/Cake/Model/Datasource/DboSource.php line 461 → PDOStatement->execute(array) try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
CORE/Cake/Model/Datasource/DboSource.php line 427 → DboSource->_execute(string, array) $options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'SELECT `Newsroom`.`id`, `Newsroom`.`title`, `Newsroom`.`slug`, `Newsroom`.`body`, `Newsroom`.`created`, `Newsroom`.`status` FROM `10095882_0000079`.`newsrooms` AS `Newsroom` WHERE `Newsroom`.`id` > AND `Newsroom`.`status` = 1 ORDER BY `Newsroom`.`id` ASC LIMIT 1'
array()
CORE/Cake/Model/Datasource/DboSource.php line 671 → DboSource->execute(string, array, array) if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
if ($result = $this->execute($sql, array(), $params)) {
$out = array();
'SELECT `Newsroom`.`id`, `Newsroom`.`title`, `Newsroom`.`slug`, `Newsroom`.`body`, `Newsroom`.`created`, `Newsroom`.`status` FROM `10095882_0000079`.`newsrooms` AS `Newsroom` WHERE `Newsroom`.`id` > AND `Newsroom`.`status` = 1 ORDER BY `Newsroom`.`id` ASC LIMIT 1'
array()
array()
CORE/Cake/Model/Datasource/DboSource.php line 1082 → DboSource->fetchAll(string, boolean)
$query = trim($this->generateAssociationQuery($model, null, null, null, null, $queryData, false, $null));
$resultSet = $this->fetchAll($query, $model->cacheQueries);
'SELECT `Newsroom`.`id`, `Newsroom`.`title`, `Newsroom`.`slug`, `Newsroom`.`body`, `Newsroom`.`created`, `Newsroom`.`status` FROM `10095882_0000079`.`newsrooms` AS `Newsroom` WHERE `Newsroom`.`id` > AND `Newsroom`.`status` = 1 ORDER BY `Newsroom`.`id` ASC LIMIT 1'
false
CORE/Cake/Model/Model.php line 2630 → DboSource->read(Newsroom, array) return null;
}
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(Newsroom) {
name => 'Newsroom'
useDbConfig => 'default'
useTable => 'newsrooms'
id => false
data => array([maximum depth reached])
schemaName => '10095882_0000079'
table => 'newsrooms'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Newsroom'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'first'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
}
array(
'conditions' => array(
(int) 0 => 'Newsroom.id > ',
'Newsroom.status' => (int) 1
),
'fields' => null,
'joins' => array(),
'limit' => (int) 1,
'offset' => null,
'order' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
ROOTappROOTControllerROOTNewsroomController.php line 42 → Model->find(string, array) ),
'order' => array(
'Newsroom.id ASC'
))),
'next' => $this->Newsroom->find('first', array(
'first'
array(
'conditions' => array(
(int) 0 => 'Newsroom.id > ',
'Newsroom.status' => (int) 1
),
'order' => array(
(int) 0 => 'Newsroom.id ASC'
)
)
[internal function] → NewsroomController->szczegoly()
CORE/Cake/Controller/Controller.php line 485 → ReflectionMethod->invokeArgs(NewsroomController, array) 'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(NewsroomController) {
name => 'Newsroom'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Newsroom'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'szczegoly'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Newsroom'
modelKey => 'newsroom'
validationErrors => null
Session => object(SessionComponent) {}
Paginator => object(PaginatorComponent) {}
Setting => object(Setting) {}
Newsroom => object(Newsroom) {}
Category => object(Category) {}
}
array()
CORE/Cake/Routing/Dispatcher.php line 186 → Controller->invokeAction(CakeRequest) $controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
base => ''
webroot => '/'
here => '/newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
}
CORE/Cake/Routing/Dispatcher.php line 161 → Dispatcher->_invoke(NewsroomController, CakeRequest, CakeResponse) ));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(NewsroomController) {
name => 'Newsroom'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Newsroom'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'szczegoly'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Newsroom'
modelKey => 'newsroom'
validationErrors => null
Session => object(SessionComponent) {}
Paginator => object(PaginatorComponent) {}
Setting => object(Setting) {}
Newsroom => object(Newsroom) {}
Category => object(Category) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
base => ''
webroot => '/'
here => '/newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
}
object(CakeResponse) {
}
ROOTappROOTwebrootROOTindex.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse) App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
base => ''
webroot => '/'
here => '/newsroom/szczegoly/%3Cpre%20class=%22cake-error%22%3E%3Ca%20href=%22javascript:void(0);%22%20onclick=%22document.getElementById('cakeErr5d8726af56588-trace').style.display%20=%20(document.getElementById('cakeErr5d8726af56588-trace').style.display%20==%20'none'%20'
}
object(CakeResponse) {
}
Boruta Park Zgierz ul. Boruty 20, 95-100 Zgierz
+48 42 30 73 070 +48 666 636 053
biuro@maglo.com.pl